namespace Study402 {


  // 运行时：正常的js语法
  let str = "hello";
  console.log(typeof str); // "string"

  let num = 42;
  console.log(typeof num); // "number"

  let bool = true;
  console.log(typeof bool); // "boolean"

  let obj = { key: "value" };
  console.log(typeof obj); // "object"

  let func = () => { };
  console.log(typeof func); // "function"


  // 类型层面的 typeof

  class Person3 {
    constructor(
      public name: string,
      public age: number,
      public isActive: boolean
    ) { }
  }

  let p3 = new Person3('changsheng', 22, false)

  type pType = typeof p3



  let str4 = "zifuc"


  type str4Type = typeof str4



}

export {}